.error {
  color: red;
  margin-left: 148px;
}

div, h2, form, button {
  margin: 0px;
  padding: 0px;
}

#content {
  top: 60px;
}

@mixin flex($direction:column,$items:stretch,$justify:space-between) {
  display: flex;
  flex-direction: $direction;
  align-items: $items;
  justify-content: $justify;
}

@mixin modalCenter($top: 60px, $bottom: 30px, $translateY: 0) {
  width: 600px;
  position: absolute;
  top: $top;
  left: 50%;
  bottom: $bottom;
  transform: translate(-50%, #{$translateY});
}

$headerOrLiHeight: 44px;
$buttonHeight: 26px;
$bdColor: #d7d7d7;
$modalBdColor: white;

.panel_header {
  height: $headerOrLiHeight;
  line-height: $headerOrLiHeight;
  background: -webkit-linear-gradient(top, #f3f3f3, #eeeeee);
  background: -moz-linear-gradient(top, #f3f3f3, #eeeeee);
  background: linear-gradient(top, #f3f3f3, #eeeeee);
  border-bottom: 1px solid #3b4756;
  text-align: center;
  font-size: 16px;
}

.panel_footer {
  height: 36px;
  line-height: 36px;
  background: -webkit-linear-gradient(top, #f3f3f3, #eeeeee);
  background: -moz-linear-gradient(top, #f3f3f3, #eeeeee);
  background: linear-gradient(top, #f3f3f3, #eeeeee);
  border-top: 1px solid #3b4756;
  position: absolute;
  width: 100%;
  bottom: 0px;
}

.panel_header h2 {
  font-size: 16px;
  font-weight: normal;
  line-height: $headerOrLiHeight;
}

.panel_body {
  flex-grow: 1;
  -webkit-flex-grow: 1;
  overflow-y: auto;
  background-color: $modalBdColor;
}

.input-group {
  @include flex(row, flex-start);

  label {
    font-weight: normal;
    white-space: nowrap;
    line-height: 28px;
    flex-grow: 1;
    -webkit-flex-grow: 1;
  }

  .form-control {
    width: 380px;
    height: 28px;
    line-height: 28px;
    padding-top: 0px;
    padding-bottom: 0px;
  }
}

.button-group-client {
  @include flex(row, center);

  .button-add-client {
    height: 26px;
    line-height: 26px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-left: 10px;
  }

  .select-group {
    width: 70%;

    label {
      white-space: nowrap;
      margin-bottom: 0;
      font-weight: normal;
      width: 17%;
      margin: 0 10px;

      &:nth-of-type(4) {
        position: relative;
        top: 1px;
      }
    }

    .form-control {
      background-color: $modalBdColor;
      border: 1px solid $bdColor;
      padding: 0px;
      padding-left: 10px;
      height: 28px;
      line-height: 28px;
      width: 100%;
    }
  }

  .form-inline {
    margin-right: 10px;
  }
}

.panel_header .form-inline {
  .input-group {
    left: 10px;
  }

  input {
    height: 28px;
    line-height: 28px;
    width: 300px;
  }

  button {
    height: 28px;
    position: relative;
    top: 0.5px;
    padding: 0 12px;
  }
}

.panel_title {
  padding: 0px;
  line-height: 44px;
  border-bottom: 1px solid $bdColor;
  color: #777777;

  .client-name {
    padding-left: 18px;
  }

  .shop-cabinet {
    padding-left: 22px;
  }
}

.list {
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -15px;
  height: 740px;

  .list-item {
    height: $headerOrLiHeight;
    line-height: $headerOrLiHeight;
    border-bottom: 1px solid $bdColor;
    padding-left: 15px;

    &:last-child {
      border-bottom: none;
    }

    &:hover {
      background-color: #ececec;
    }

    &:last-child:hover {
      background-color: transparent;
    }

    div:last-child {
      padding-left: 5px;
    }
  }

  .nomore {
    text-align: center;
    line-height: 2.5;
    font-size: 12px;
    color: #ADB7C3;
  }
}

.panel_footer p {
  margin: 0px;
  padding: 0px;
  margin-left: 10px;
  color: #ADB7C3;
  font-size: 12px;
}

.aside-slider-content {
  width: 400px;
  position: absolute;
  top: 0px;
  right: -400px;
  bottom: 0px;
  @include flex();
  z-index: 2;
  background-color: $modalBdColor;
  box-shadow: -2px 0 4px #3b4756;
  transition: right 0.5s ease-in-out;
}

.aside-slider-content .panel_footer {
  position: relative;
}

.cancel {
  cursor: pointer;
}

.panel_header span.cancel {
  float: right;
  line-height: $headerOrLiHeight;
  display: inline-block;
  margin-right: 10px;
}

.aside-slider-content .panel_body .list-group .list-group-item {
  line-height: $headerOrLiHeight;
  padding-top: 0px;
  padding-bottom: 0px;
  @include flex(row, flex-start, flex-start);
}

.aside-slider-content .panel_body .list-group .list-group-item .item-title {
  width: 150px;
  min-width: 150px;
  padding-left: 10px;
}

.aside-slider-content .panel_footer {
  padding-left: 10px;
}

.aside-slider-content .panel_footer button {
  height: 26px;
  line-height: 26px;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 5px;
}

.masking {
  display: none;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  background-color: #000000;
  opacity: 0.8;
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  z-index: 2;
}

.container-client-new .panel_body .list-group {
  padding-left: 15px;
  padding-right: 15px;
}

.container-client-new .panel_body .list-group .list-group-item {
  padding-right: 0px;
  padding-bottom: 0px;
  margin-top: 10px;
  border: none;
  overflow: hidden;
}

.modal-large {
  z-index: 5;
  background-color: $modalBdColor;
  @include modalCenter();
  @include flex();
  display: none;
}

.modal-large .list-group {
  margin-top: 20px;
  padding: 20px;
  padding-top: 0;
  border-bottom: 1px solid $bdColor;
}

.modal-large .list-group-item {
  border: 0;
}

.modal-large .panel-body {
  overflow-y: auto;
  flex-grow: 1;
  -webkit-flex-grow: 1;
  padding: 0;
}

.modal-large .panel_footer {
  padding-right: 15px;
  position: relative;
}

.modal-large .panel-body .list-group .list-group-item .input-group a {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 28px;
  overflow: hidden;
  line-height: 28px;
  text-align: center;
  font-weight: 500;
  padding-top: 0px;
  margin-top: 0px;
  margin-right: 340px;
}

.modal-large .panel-body .list-group .list-group-item .input-group a input {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 100px;
  opacity: 0;
  filter: alpha(opacity=0);
  width: 80px;
}

#advanced {
  display: none;
}

.more-end {
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}

.modal-large .input-group{
  .sm-box {
    width: 180px;
    margin-right: 200px;
  }

  .modal-large .input-group .xm-box {
    width: 90px;
    margin-right: 5px;
  }
}



.container-delete-client.modal-small {
  height: 260px;
  @include modalCenter($top: 50%, $bottom: auto, $translateY: -50%);
  background-color: $modalBdColor;
  z-index: 3;
  @include flex();
  display: none;
}

.modal-small .panel_body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
}

.modal-small .panel_body .iconfont {
  flex-grow: 2;
  font-size: 56px;
  align-self: center;
  justify-content: flex-end;
  color: #fcad3a;
  padding-right: 30px;
}

.modal-small .panel_body p:last-child {
  flex-grow: 3;
}

.container-delete-client .panel_header {
  font-size: 16px;
}

.container-delete-client .panel_body {
  padding: 15px;
}

.container-delete-client .panel_footer {
  position: relative;
}

.container-delete-client .panel_footer {
  padding-right: 10px;
}

.container-delete-client .panel_footer button {
  margin: 0 5px;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 4px;
  height: 26px;
  line-height: 26px;
}

.container-delete-client .panel_body p {
  display: flex;
  flex-direction: row;
  align-items: center;
  line-height: 30px;
}

.modal-large .panel_footer .btn, .container-delete-client .panel_footer .btn {
  height: 26px;
  line-height: 26px;
  padding: 0 12px;
}
